using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._CartographyTools._MapSeries
{
    /// <summary>
    /// <para>Calculate Adjacent Fields</para>
    /// <para>Creates fields and calculates values for the neighboring pages (polygon) of a grid polygon feature class.</para>
    /// <para>为格网面要素类的相邻页面（面）创建字段并计算值。</para>
    /// </summary>    
    [DisplayName("Calculate Adjacent Fields")]
    public class CalculateAdjacentFields : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CalculateAdjacentFields()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The polygon grid index features that will be appended with adjacent field data.</para>
        /// <para>将追加相邻外业数据的面格网索引要素。</para>
        /// </param>
        /// <param name="_in_field">
        /// <para>Field Name</para>
        /// <para>The field whose values will be used to populate adjacent field data.</para>
        /// <para>其值将用于填充相邻字段数据的字段。</para>
        /// </param>
        public CalculateAdjacentFields(object _in_features, object _in_field)
        {
            this._in_features = _in_features;
            this._in_field = _in_field;
        }
        public override string ToolboxName => "Cartography Tools";

        public override string ToolName => "Calculate Adjacent Fields";

        public override string CallName => "cartography.CalculateAdjacentFields";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_features, _in_field, _out_features];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The polygon grid index features that will be appended with adjacent field data.</para>
        /// <para>将追加相邻外业数据的面格网索引要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Field Name</para>
        /// <para>The field whose values will be used to populate adjacent field data.</para>
        /// <para>其值将用于填充相邻字段数据的字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Field Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_field { get; set; }


        /// <summary>
        /// <para>Output Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Features")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_features { get; set; }


        public CalculateAdjacentFields SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}